Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make HTTPClientResponse.this nothrow #2760

Merged
merged 1 commit into from
Jan 12, 2024
Merged

Conversation

s-ludwig
Copy link
Member

Avoids undefined behavior in case of thrown exceptions when the object has only been partially initialized. In a concrete case, there was an assertion failure due to a corrupted FreeListRef that was caused by attempting to destroy the HTTPClientResponse object in the scope!HTTPClientResponse() call.

Avoids undefined behavior in case of thrown exceptions when the object has only been partially initialized. In a concrete case, there was an assertion failure due to a corrupted FreeListRef that was caused by attempting to destroy the HTTPClientResponse object in the scope!HTTPClientResponse() call.
@s-ludwig s-ludwig requested a review from l-kramer January 12, 2024 12:57
@s-ludwig s-ludwig merged commit f439a64 into master Jan 12, 2024
74 checks passed
@s-ludwig s-ludwig deleted the fix_http_client_response_crash branch January 12, 2024 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants